package com.yiren.manager.form.elder;

import java.util.Date;

import org.springframework.context.annotation.Primary;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yiren.core.form.GenericForm;
import com.yiren.manager.utils.CustomJsonDateDeserializer;
import com.yiren.manager.utils.CustomSimpleDateDeserializer;

public class YrBedRetainForm extends GenericForm{

	private static final long serialVersionUID = -2856694626793361469L;

	private String bedRetainId;

	private String bedId;

	private String createId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") 
	private Date createTime;

	private String elderId;

 	@DateTimeFormat(pattern="yyyy-MM-dd")  
	private Date retainEndTime;

 	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date retainStartTime;

	private Integer retainStatus;

	private String updateId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	private Date updateTime;
	
	private String subjectRoomId;
	
	private String beHospitalId;
	
	private YrElderBeHospitalForm elderBeHospitalForm;
	
	private String handler;
	
	private YrElderForm elderForm;
	
	public YrElderForm getElderForm() {
		return elderForm;
	}

	public void setElderForm(YrElderForm elderForm) {
		this.elderForm = elderForm;
	}

	public String getHandler() {
		return handler;
	}

	public void setHandler(String handler) {
		this.handler = handler;
	}

	public String getBeHospitalId() {
		return beHospitalId;
	}

	public void setBeHospitalId(String beHospitalId) {
		this.beHospitalId = beHospitalId;
	}

	public String getSubjectRoomId() {
		return subjectRoomId;
	}

	public void setSubjectRoomId(String subjectRoomId) {
		this.subjectRoomId = subjectRoomId;
	}

	public YrElderBeHospitalForm getElderBeHospitalForm() {
		return elderBeHospitalForm;
	}

	public void setElderBeHospitalForm(YrElderBeHospitalForm elderBeHospitalForm) {
		this.elderBeHospitalForm = elderBeHospitalForm;
	}

	public String getBedRetainId() {
		return bedRetainId;
	}

	public void setBedRetainId(String bedRetainId) {
		this.bedRetainId = bedRetainId;
	}

	public String getBedId() {
		return bedId;
	}

	public void setBedId(String bedId) {
		this.bedId = bedId;
	}

	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getElderId() {
		return elderId;
	}

	public void setElderId(String elderId) {
		this.elderId = elderId;
	}

	public Date getRetainEndTime() {
		return retainEndTime;
	}

	@JsonDeserialize(using=CustomSimpleDateDeserializer.class)
	public void setRetainEndTime(Date retainEndTime) {
		this.retainEndTime = retainEndTime;
	}

	public Date getRetainStartTime() {
		return retainStartTime;
	}

	@JsonDeserialize(using=CustomSimpleDateDeserializer.class)
	public void setRetainStartTime(Date retainStartTime) {
		this.retainStartTime = retainStartTime;
	}

	public Integer getRetainStatus() {
		return retainStatus;
	}

	public void setRetainStatus(Integer retainStatus) {
		this.retainStatus = retainStatus;
	}

	public String getUpdateId() {
		return updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
